﻿@model TGBTech.Core.Models.DanhMuc.HangHoa

@{
    ViewBag.Title = "Create";
}

<div class="row">
    <div class="portlet box blue">
        <div class="portlet-title">
            <div class="caption">
                Thêm Hàng hóa
            </div>
            <div class="tools">
                <button id="close" type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            </div>
        </div>
        <div class="portlet-body">
            @using (Html.BeginForm("Create", "HangHoa", FormMethod.Post, new { id = "formCreateHangHoa" }))
            {
                @Html.AntiForgeryToken()

                <div class="form-horizontal">
                    @Html.ValidationSummary(true)

                    <div class="form-group">
                        <label class="col-md-3 control-label">Mã hàng</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Id, new { @class = "form-control", placeholder = "Mã hàng" })
                            @Html.ValidationMessageFor(model => model.Id)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Tên hàng</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Name, new { @class = "form-control", placeholder = "Tên hàng" })
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-offset-3 col-md-10">
                            <input type="submit" value="Thêm" class="btn blue" />
                        </div>
                    </div>
                </div>
            }
        </div>
    </div>
</div>